package com.example.cv.intercepter;

import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 周杰
 */
public class AuthorInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        //if(request.getRequestURI().endsWith("/register")||request.getRequestURI().endsWith("/login")||request.getRequestURI().endsWith(".css")||request.getRequestURI().endsWith(".js")||request.getRequestURI().endsWith(".png")||request.getRequestURI().endsWith(".jpg")||request.getRequestURI().endsWith(".gif")){
            return true;
       // }
       // return false;
    }
}
